Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Allow creating permalinks for unknown predecessor rooms (even though unlikely to be successful) #10113

Closed

Conversation

justjanne
Copy link
Contributor

@justjanne justjanne commented Feb 8, 2023

Type: Defect
Partially fixes: element-hq/element-web#24453
Reopens: element-hq/element-web#2925


Here's what your changelog entry will look like:

🐛 Bug Fixes

@justjanne justjanne added the T-Defect Bugs, crashes, hangs, vulnerabilities, or other reported problems label Feb 8, 2023
@t3chguy
Copy link
Member

t3chguy commented Feb 8, 2023

If this lands I think it warrants reopening element-hq/element-web#2925 as that was closed as everything moved to vias, this regresses that

if (prevRoom) {
permalinkCreator.load();
} else {
logger.warn(`Creating permalink for unknown predecessor room ${predecessor.roomId}, unlikely to be successful`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
logger.warn(`Creating permalink for unknown predecessor room ${predecessor.roomId}, unlikely to be successful`);
logger.warn(`Creating permalink for unknown predecessor room ${predecessor.roomId}, it's possible that this room doesn't actually exist but we will give the user what they want`);

Copy link
Contributor

@MadLittleMods MadLittleMods Feb 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternative and probably more accurate than my first suggestion:

Suggested change
logger.warn(`Creating permalink for unknown predecessor room ${predecessor.roomId}, unlikely to be successful`);
logger.warn(`Creating permalink for unknown predecessor room ${predecessor.roomId}, unlikely to be routable on its own without via servers but we will give the user what they want`);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
logger.warn(`Creating permalink for unknown predecessor room ${predecessor.roomId}, unlikely to be successful`);
logger.warn(`Creating permalink for unknown predecessor room ${predecessor.roomId},`+
'unlikely to be successful as rooms without via servers are usually not routable');

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The phrasing here makes successful ambiguous about what will be successful. It kinda makes it seem like creating the permalink is unlikely to be successful.

Whereas I think we're trying to explain that a permalink for a random room ID is unlikely to get the user to right place.

@justjanne justjanne closed this Feb 10, 2023
@justjanne justjanne deleted the justjanne/fix/24453-unknown-predecessor-room branch February 10, 2023 10:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Defect Bugs, crashes, hangs, vulnerabilities, or other reported problems
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gitter sunsetting: Can't go back to previous room version if I've never been there
3 participants